<template>
  <swiper class="detail-swiper">
    <swiper-slide :key="item" v-for="item in topImages">
      <img :src="item" />
    </swiper-slide>
  </swiper>
</template>

<script>
import Swiper from "components/content/swiper/Swiper";
export default {
  name: "DetailSwiper",
  components: {
    Swiper,
  },
  // 轮播图图片数据通过props让父组件detail传入
  props: {
    topImages: {
      type: Array,
      default() {
        return [];
      },
    },
  },
};
</script>

<style lang="less" scoped>
.detail-swiper {
  height: 375px;
  text-align: center;
  img {
    height: 100%;
  }
}
</style>>
